how to convert decimal expansion into p